<!--
 * @Description:销售回访明细  saleRemindDetail
 * @Autor: 刘诗文
 * @Date: 2020-12-30 16:20:01
 * @LastEditors: 马毅
 * @LastEditTime: 2021-06-28 13:14:45
-->
<template>
  <div>
    <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="130" :formType="type" :isSubmitBtn="false" />
    <div
      :style="{
        position: 'absolute',
        left: 0,
        bottom: 0,
        right: 0,
        zIndex: 9,
        borderTop: '1px solid #e9e9e9',
        padding: '10px 20px',
        background: '#fff',
        textAlign: 'right'
      }"
    >
      <el-button @click="cancelHandle">取消</el-button>
    </div>
  </div>
</template>
<script>
import { dictionary } from '@/utils/dictMixin';
export default {
  name: 'saleRemindDetail',
  mixins: [dictionary],
  props: {
    type: {
      type: String
    },
    formData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    this.selectedData = null;
    return {
      formList: this.createFromList()
    };
  },
  mounted() {},
  methods: {
    createFromList() {
      return [
        {
          type: 'BREAK_SPACE',
          label: '零售信息'
        },
        {
          type: 'INPUT',
          label: '零售单号',
          fieldName: 'a1',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '客户编号',
          fieldName: 'a2',
          disabled: true,
          initialValue: '',
          rules: [{ required: true, message: '请填写客户编号', trigger: 'blur' }]
        },
        {
          type: 'INPUT',
          label: '客户姓名',
          fieldName: 'a3',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '手机号',
          fieldName: 'a4',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'SELECT',
          label: '证件类型',
          fieldName: 'a5',
          disabled: true,
          initialValue: '',
          itemList: []
        },
        {
          type: 'INPUT',
          label: '证件号',
          fieldName: 'a6',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '联系地址',
          fieldName: 'a7',
          disabled: true,
          selfCols: 3,
          initialValue: '',
          rules: [{ required: true, message: '请填写联系地址', trigger: 'blur' }]
        },
        {
          type: 'INPUT',
          label: '开单人',
          fieldName: 'a8',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'DATE',
          label: '签约日期',
          fieldName: 'a9',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'DATE',
          label: '预交车时间',
          fieldName: 'a10',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '销售顾问',
          fieldName: 'a11',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '支付方式',
          fieldName: 'a12',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '经销商',
          fieldName: 'a13',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '定金金额',
          fieldName: 'a14',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'DATE',
          label: '定金日期',
          fieldName: 'a15',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'CHECKBOX',
          label: '大客户订单',
          fieldName: 'a16',
          disabled: true,
          initialValue: ''
          //  rules: [{ required: true, message: '请勾选大客户订单', trigger: 'blur' }]
        },
        {
          type: 'CHECKBOX',
          label: '特殊订单',
          fieldName: 'a17',
          disabled: true,
          initialValue: ''
          // rules: [{ required: true, message: '请勾选特殊订单', trigger: 'blur' }]
        },
        {
          type: 'INPUT',
          label: '备注',
          fieldName: 'a18',
          disabled: true,
          initialValue: '',
          selfCols: 3
        },

        {
          type: 'BREAK_SPACE',
          label: '车辆信息'
        },
        {
          type: 'INPUT',
          label: 'VIN',
          fieldName: 'a19',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '发动机号',
          fieldName: 'a20',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '电机号1',
          fieldName: 'a21',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '电机号2',
          fieldName: 'a22',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '合格证号',
          fieldName: 'a23',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '品牌名称',
          fieldName: 'a24',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '车系名称',
          fieldName: 'a25',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '车型名称',
          fieldName: 'a26',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '配置名称',
          fieldName: 'a27',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '选装名称',
          fieldName: 'a28',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '内饰色',
          fieldName: 'a29',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '外饰色',
          fieldName: 'a30',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '产品名称',
          fieldName: 'a31',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '产品代码',
          fieldName: 'a32',
          disabled: true,
          initialValue: '',
          rules: [{ required: true, message: '请填写产品代码', trigger: 'blur' }]
        },
        {
          type: 'INPUT',
          label: '销售指导价',
          fieldName: 'a33',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '销售报价',
          fieldName: 'a34',
          disabled: true,
          initialValue: ''
        },
        {
          type: 'INPUT',
          label: '折让金额',
          fieldName: 'a35',
          disabled: true,
          initialValue: ''
        }
      ];
    },
    cancelHandle() {
      this.$emit('close', false);
    }
  }
};
</script>
<style lang="less" scoped></style>
